home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / A.D. Software / OOFILE / Buildable, limited OOFILE / source / reports / oofrw.inl < prev   
Text File  |  1996-03-13  |  2KB  |  114 lines

  1. // COPYRIGHT 1994 A.D. Software, All rights reserved
  2.  
  3. // report-writer layer of OOFILE database
  4.  
  5. // -------------------------------------------------------
  6. //               d b R e p S i z e r
  7. // -------------------------------------------------------
  8.  
  9. inline dbRepSizer& 
  10. dbRepSizer::title(const OOF_String& reportTitle)
  11. {
  12.     mReportTitle = reportTitle;
  13.     return *this;
  14. }
  15.  
  16.  
  17. inline dbRepSizer& 
  18. dbRepSizer::title(const char* reportTitle)
  19. {
  20.     mReportTitle = reportTitle;
  21.     return *this;
  22. }
  23.  
  24.  
  25. inline dbRepSizer&
  26. dbRepSizer::pageHeight(unsigned int pageHeight)
  27. {
  28.     mPageHeight = pageHeight;
  29.     return *this;
  30. }
  31.  
  32.  
  33. inline dbRepSizer& 
  34. dbRepSizer::pageWidth(unsigned int pageWidth)
  35. {
  36.     mPageWidth = pageWidth;
  37.     return *this;
  38. }
  39.  
  40.  
  41. inline dbRepSizer& 
  42. dbRepSizer::leftMargin(unsigned int leftMargin)
  43. {
  44.     mLeftMargin = leftMargin;
  45.     return *this;
  46. }
  47.  
  48.  
  49. inline dbRepSizer& 
  50. dbRepSizer::rightMargin(unsigned int rightMargin)
  51. {
  52.     mRightMargin = rightMargin;
  53.     return *this;
  54. }
  55.  
  56.  
  57. inline dbRepSizer& 
  58. dbRepSizer::topMargin(unsigned int topMargin)
  59. {
  60.     mTopMargin = topMargin;
  61.     return *this;
  62. }
  63.  
  64.  
  65. inline dbRepSizer& 
  66. dbRepSizer::bottomMargin(unsigned int bottomMargin)
  67. {
  68.     mBottomMargin = bottomMargin;
  69.     return *this;
  70. }
  71.  
  72.  
  73. inline dbRepSizer& 
  74. dbRepSizer::colSepWidth(unsigned int colSepWidth)
  75. {
  76.     mColSepWidth = colSepWidth;
  77.     return *this;
  78. }
  79.  
  80.  
  81. inline dbRepSizer& 
  82. dbRepSizer::blockVertSep(unsigned int blockVertSep)
  83. {
  84.     mBlockVertSep = blockVertSep;
  85.     return *this;
  86. }
  87.  
  88.  
  89.  
  90.  
  91.  
  92. // -------------------------------------------------------
  93. //              d b R e p C o l W i d t h s 
  94. // -------------------------------------------------------
  95.  
  96.  
  97. //    friend     
  98. /*inline dbRepColWidths& 
  99. operator<<(dbRepColWidths& lhs, unsigned int rhs)
  100. {
  101.     lhs.append(rhs);
  102.     return lhs;
  103. }
  104. */
  105.  
  106.  
  107. inline dbRepColWidths& 
  108. dbRepColWidths::operator<<(unsigned int rhs)
  109. {
  110.     append(rhs);
  111.     return *this;
  112. }
  113.  
  114.